/*
 * CommandCode.java
 *
 * Created on 13 marzo 2007, 19.58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.bloomingstars.bluepad.comm;

/**
 *
 * @author vega
 */
public class CommandCode extends BlueEnumeration
{
    public static final int NULL_COMMAND         = 100;
    public static final int MOVE_EAST            = 101;
    public static final int RELEASE_EAST         = 102;
    public static final int MOVE_SOUTH           = 103;
    public static final int RELEASE_SOUTH        = 104;
    public static final int MOVE_WEST            = 105;
    public static final int RELEASE_WEST         = 106;
    public static final int MOVE_NORTH           = 107;
    public static final int RELEASE_NORTH        = 108;
    public static final int STOP                 = 109;
    public static final int SET_SPEED_1          = 110;
    public static final int SET_SPEED_2          = 111;
    public static final int SET_SPEED_3          = 112;
    public static final int SET_SPEED_4          = 113;
    public static final int GET_TELESCOPE_RA     = 114;
    public static final int GET_TELESCOPE_DEC    = 115;
    public static final int GET_FIRMWARE_NUMBER  = 116;
    public static final int GET_PRODUCT_NAME     = 117;
    
    private CommandCode()
    {
        
    }
    
    protected void loadTable()
    {
        table.put(new Integer(NULL_COMMAND), "NULL_COMMAND");
        table.put(new Integer(MOVE_EAST), "MOVE_EAST");
        table.put(new Integer(RELEASE_EAST), "RELEASE_EAST");
        table.put(new Integer(MOVE_SOUTH), "MOVE_SOUTH");
        table.put(new Integer(RELEASE_SOUTH), "RELEASE_SOUTH");
        table.put(new Integer(MOVE_WEST), "MOVE_WEST");
        table.put(new Integer(RELEASE_WEST), "RELEASE_WEST");
        table.put(new Integer(MOVE_NORTH), "MOVE_NORTH");
        table.put(new Integer(RELEASE_NORTH), "RELEASE_NORTH");
        table.put(new Integer(STOP), "STOP");
        table.put(new Integer(SET_SPEED_1), "SET_SPEED_1");
        table.put(new Integer(SET_SPEED_2), "SET_SPEED_2");        
        table.put(new Integer(SET_SPEED_3), "SET_SPEED_3");
        table.put(new Integer(SET_SPEED_4), "SET_SPEED_4");
        table.put(new Integer(GET_TELESCOPE_RA), "GET_TELESCOPE_RA");
        table.put(new Integer(GET_TELESCOPE_DEC), "GET_TELESCOPE_DEC");
        table.put(new Integer(GET_TELESCOPE_RA), "GET_FIRMWARE_NUMBER");
        table.put(new Integer(GET_TELESCOPE_RA), "GET_PRODUCT_NAME");
    }
    
    static
    {
        new CommandCode().loadTable();
    }
}
